import React from 'react'
import './NewPeople.less'
import {$pre} from '../../../../http/http'
import {Link} from 'react-router-dom'
export default function 
(props) {
  let {newList} =props;
  // console.log('newList',newList)
  return (
    <div className='newPeople'>
        <h3>新人专享</h3>
        <div className="list">
            {newList.map(item=>{
              return (<Link to={`/detail/${item.id}/1`} className="item" key={item.id}>
                  <img src={$pre + item.img} alt="" />
                  <p>{item.goodsname}</p>
                  <p className='price'>￥{item.price}</p>
              </Link>)
            })}
        </div>
    </div>
  )
}
